Gets the index of an item in the list.
'Declaration
Public Overloads Overridable Function IndexOf( _
ByVal As String _
) As Integer
public virtual int IndexOf(
string
)
Parameters
- name
- Name of the item to search.
Return Value
The index of the item in the list, or -1 if the item could not be found.